import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
   path:"/",
   redirect: "/home"
  },
  {
    path:'/home',
    name:'home',
    component:()=>import('../views/Home.vue')
    
  },
  {
    path:'/chanpin',
    name:'chanpin',
    component:()=>import('../views/ChanPin.vue')
    
  },
  {
    path:'/shangjia',
    name:'shangjia',
    component:()=>import('../views/ShangJia.vue')
  }
  
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
